// #####################################
// File     : motor.h
// Author   : Chris Meaclem, Isaac Manuel
// Date     : 29/07/2011
// Release  : Intermediate
// Purpose  : 
// Notes    : 
// #####################################

#ifndef __MOTOR_H__
#define __MOTOR_H__

/*
PINOUT:

LEFT MOTOR:
	ENABLE:	PB5
	FOR:	PB4
	REV:	PB3
	
RIGHT MOTOR:
	ENABLE:	PB0
	FOR:	PB1
	REV:	PB2
	
*/

#define uint unsigned int

typedef enum {
	motor_LeftID = 0,
	motor_RightID,
	motor_BothID
} motorID;  // May not need this, just to distinguish the motors apart. Use #define instead?


/*Define the vehicle states that the vehicle can be in*/
typedef enum {
	vechile_Stop = 0, 
	vechile_For,
	vechile_Left,
	vechile_Right,
	vechile_Rev
} vechileState;


void motor_Init(void);

uint vechile_Drive(vechileState state); //state belongs to the set 'vechileStates'



#endif // #ifndef __MOTOR_H__
